# -*- coding: utf-8 -*-
"""
Created on Thu Sep 19 17:10:23 2024

@author: Administrator
"""
from tkinter import *
import time 

tk = Tk()
tk.title("animation01")

canvas = Canvas(tk,width=800,height=600)
canvas.pack()

id1 = canvas.create_oval(10,50,60,100,fill="yellow",outline="lightgray")

for x in range(0, 200):
    #move(id,x,y)
    canvas.move(id1,5,0)
    tk.update()
    time.sleep(0.05)
    
tk.mainloop()